public static boolean isMondayToFriday() 
{
    LocalDateTime time = LocalDateTime.now();
    int day = time.getDayOfWeek().getValue();
    if (day >= 1 && day <= 5) 
    {
        System.out.println("上班");
        return true;
    }
    else
    {
        System.out.println("休息");
        return false;
    }       
}    